package com.app.permissionx;

import android.Manifest;
import android.annotation.TargetApi;
import android.os.Build;

import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author lzy
 * @date 2021/4/30
 */
public class PermissionMap {
    @TargetApi(Build.VERSION_CODES.R)
    public static Set<String> allSpecialPermissions() {
        LinkedHashSet<String> set = new LinkedHashSet<>();
        set.add(Manifest.permission.ACCESS_BACKGROUND_LOCATION);

        set.add(Manifest.permission.SYSTEM_ALERT_WINDOW);
        set.add(Manifest.permission.WRITE_SETTINGS);
        set.add(Manifest.permission.MANAGE_EXTERNAL_STORAGE);
        set.add(Manifest.permission.REQUEST_INSTALL_PACKAGES);

        return set;
    }
}
